#include <iostream>
#include "sqfab.h"
using namespace std;

int main()
{
	int k, n;
	SqFab sqf;
	cout << "Input the number k & n: ";
	cin >> k >> n;
	sqf.InitQueue(k);
	sqf.Execute(n);
	sqf.Print();
	return 0;
}